home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2947 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: news.eunet.fi!fipnet!kone!jsaarinen
  2. Newsgroups: comp.sys.amiga.programmer
  3. X-NewsReader: IntuiNews 1.2b (31.7.94)
  4. References: <38232280@kone.fipnet.fi> <987.6609T1075T1727@ifi.uio.no>
  5. From: "Jyrki Saarinen" <jsaarinen@kone.fipnet.fi>
  6. Date: Tue, 6 Feb 96 17:15:08 UT
  7. Comments: Illegal date header - new date added by quicknews
  8. X-Original-Date: Tue, 06 Feb 96 18:59:54 
  9. MIME-Version: 1.0
  10. Content-Type: text/plain; charset=iso-8859-1
  11. Content-Transfer-Encoding: binary
  12. Subject: Re: PPC compilers
  13. Message-ID: <38232333@kone.fipnet.fi>
  14.  
  15.  
  16. > That should fix the delay problem. For 1 addx and 2 addx'es. :)
  17. > Remember when you use 2 addx the fraction parts are swapped, so the
  18. > fract and x-flag is calculated on the addx above, so there will be no
  19. > delay problems on the second addx. Everything should be correct!
  20.  
  21. Yep. Now the optimal polygon routine looks like this:
  22. (Gouraud/Texture with a Shading table)
  23.  
  24.         move.w  d2,d4           ;u<<8
  25.         move.l  a0,d5           ;g<<8
  26.         move.b  d2,d4           ;+v
  27.         move.b  (a2,d4.w),d5    ;read texel
  28.         move.b  (a3,d5.l),(a4)+ ;read pixel from the shading table
  29.         addx.l  d3,d2           ;u+=ustep
  30.         addx.l  d1,d0           ;v+=vstep
  31.         add.l   a1,a0           ;g+=gstep
  32.  
  33. That should be about 30 68020/68030 cycles per pixel.
  34.  
  35. Now, how the hell this should be scheduled for maximum
  36. performance on the 68040 and on the 68060? Anyone?
  37.  
  38. --                               _
  39. a Stellar programmer          _ //
  40. "Amiga - back for the future" \X/
  41.